#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTable.Objects;

namespace UTable.ObjectManager.Commands
{
    public class SystemCommand: ICommand
    {
        private SystemCommandType _subType;
        private Object _param;

        public SystemCommand(SystemCommandType type, Object param)
        {
            this._subType = type;
            this._param = param;
        }

        #region ICommand Members

        public CommandType Type
        {
            get { return CommandType.SYSTEM; }
        }

        public SystemCommandType SubType { get { return _subType; } }

        public Object Param { get { return _param; } }

        public IObject Receiver
        {
            get { return null; }
            set {  }
        }

        public bool Authorized
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool ConflictResolved
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
        #endregion
    }

    public enum SystemCommandType
    {
        Shutdown,
    }
}
